package main

import (
	"one-project/dao"
	"one-project/models"
	"one-project/routes"
)

func main()  {
	err := dao.InitMysql()
	if err != nil {
		panic(err)
	}

	models.InitTodoModel()

	r := routes.SetupRoutes()

	r.Run(":9000")
}
